Optimal. Leaf size=185 \[ \frac {7}{16} a^4 (8 A+7 B) x+\frac {4 a^4 (8 A+7 B) \sin (c+d x)}{5 d}+\frac {27 a^4 (8 A+7 B) \cos (c+d x) \sin (c+d x)}{80 d}+\frac {a^4 (8 A+7 B) \cos ^3(c+d x) \sin (c+d x)}{40 d}+\frac {(6 A-B) (a+a \cos (c+d x))^4 \sin (c+d x)}{30 d}+\frac {B (a+a \cos (c+d x))^5 \sin (c+d x)}{6 a d}-\frac {2 a^4 (8 A+7 B) \sin ^3(c+d x)}{15 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.18, antiderivative size = 185, normalized size of antiderivative = 1.00, number of steps
used = 13, number of rules used = 8, integrand size = 29, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.276, Rules used = {3047, 3102,
2830, 2724, 2717, 2715, 8, 2713} \begin {gather*} -\frac {2 a^4 (8 A+7 B) \sin ^3(c+d x)}{15 d}+\frac {4 a^4 (8 A+7 B) \sin (c+d x)}{5 d}+\frac {a^4 (8 A+7 B) \sin (c+d x) \cos ^3(c+d x)}{40 d}+\frac {27 a^4 (8 A+7 B) \sin (c+d x) \cos (c+d x)}{80 d}+\frac {7}{16} a^4 x (8 A+7 B)+\frac {(6 A-B) \sin (c+d x) (a \cos (c+d x)+a)^4}{30 d}+\frac {B \sin (c+d x) (a \cos (c+d x)+a)^5}{6 a d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 2713
Rule 2715
Rule 2717
Rule 2724
Rule 2830
Rule 3047
Rule 3102
Rubi steps
\begin {align*} \int \cos (c+d x) (a+a \cos (c+d x))^4 (A+B \cos (c+d x)) \, dx &=\int (a+a \cos (c+d x))^4 \left (A \cos (c+d x)+B \cos ^2(c+d x)\right ) \, dx\\ &=\frac {B (a+a \cos (c+d x))^5 \sin (c+d x)}{6 a d}+\frac {\int (a+a \cos (c+d x))^4 (5 a B+a (6 A-B) \cos (c+d x)) \, dx}{6 a}\\ &=\frac {(6 A-B) (a+a \cos (c+d x))^4 \sin (c+d x)}{30 d}+\frac {B (a+a \cos (c+d x))^5 \sin (c+d x)}{6 a d}+\frac {1}{10} (8 A+7 B) \int (a+a \cos (c+d x))^4 \, dx\\ &=\frac {(6 A-B) (a+a \cos (c+d x))^4 \sin (c+d x)}{30 d}+\frac {B (a+a \cos (c+d x))^5 \sin (c+d x)}{6 a d}+\frac {1}{10} (8 A+7 B) \int \left (a^4+4 a^4 \cos (c+d x)+6 a^4 \cos ^2(c+d x)+4 a^4 \cos ^3(c+d x)+a^4 \cos ^4(c+d x)\right ) \, dx\\ &=\frac {1}{10} a^4 (8 A+7 B) x+\frac {(6 A-B) (a+a \cos (c+d x))^4 \sin (c+d x)}{30 d}+\frac {B (a+a \cos (c+d x))^5 \sin (c+d x)}{6 a d}+\frac {1}{10} \left (a^4 (8 A+7 B)\right ) \int \cos ^4(c+d x) \, dx+\frac {1}{5} \left (2 a^4 (8 A+7 B)\right ) \int \cos (c+d x) \, dx+\frac {1}{5} \left (2 a^4 (8 A+7 B)\right ) \int \cos ^3(c+d x) \, dx+\frac {1}{5} \left (3 a^4 (8 A+7 B)\right ) \int \cos ^2(c+d x) \, dx\\ &=\frac {1}{10} a^4 (8 A+7 B) x+\frac {2 a^4 (8 A+7 B) \sin (c+d x)}{5 d}+\frac {3 a^4 (8 A+7 B) \cos (c+d x) \sin (c+d x)}{10 d}+\frac {a^4 (8 A+7 B) \cos ^3(c+d x) \sin (c+d x)}{40 d}+\frac {(6 A-B) (a+a \cos (c+d x))^4 \sin (c+d x)}{30 d}+\frac {B (a+a \cos (c+d x))^5 \sin (c+d x)}{6 a d}+\frac {1}{40} \left (3 a^4 (8 A+7 B)\right ) \int \cos ^2(c+d x) \, dx+\frac {1}{10} \left (3 a^4 (8 A+7 B)\right ) \int 1 \, dx-\frac {\left (2 a^4 (8 A+7 B)\right ) \text {Subst}\left (\int \left (1-x^2\right ) \, dx,x,-\sin (c+d x)\right )}{5 d}\\ &=\frac {2}{5} a^4 (8 A+7 B) x+\frac {4 a^4 (8 A+7 B) \sin (c+d x)}{5 d}+\frac {27 a^4 (8 A+7 B) \cos (c+d x) \sin (c+d x)}{80 d}+\frac {a^4 (8 A+7 B) \cos ^3(c+d x) \sin (c+d x)}{40 d}+\frac {(6 A-B) (a+a \cos (c+d x))^4 \sin (c+d x)}{30 d}+\frac {B (a+a \cos (c+d x))^5 \sin (c+d x)}{6 a d}-\frac {2 a^4 (8 A+7 B) \sin ^3(c+d x)}{15 d}+\frac {1}{80} \left (3 a^4 (8 A+7 B)\right ) \int 1 \, dx\\ &=\frac {7}{16} a^4 (8 A+7 B) x+\frac {4 a^4 (8 A+7 B) \sin (c+d x)}{5 d}+\frac {27 a^4 (8 A+7 B) \cos (c+d x) \sin (c+d x)}{80 d}+\frac {a^4 (8 A+7 B) \cos ^3(c+d x) \sin (c+d x)}{40 d}+\frac {(6 A-B) (a+a \cos (c+d x))^4 \sin (c+d x)}{30 d}+\frac {B (a+a \cos (c+d x))^5 \sin (c+d x)}{6 a d}-\frac {2 a^4 (8 A+7 B) \sin ^3(c+d x)}{15 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.56, size = 134, normalized size = 0.72 \begin {gather*} \frac {a^4 (2940 B c+3360 A d x+2940 B d x+120 (49 A+44 B) \sin (c+d x)+15 (128 A+127 B) \sin (2 (c+d x))+580 A \sin (3 (c+d x))+720 B \sin (3 (c+d x))+120 A \sin (4 (c+d x))+225 B \sin (4 (c+d x))+12 A \sin (5 (c+d x))+48 B \sin (5 (c+d x))+5 B \sin (6 (c+d x)))}{960 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.21, size = 306, normalized size = 1.65
method | result | size |
risch | \(\frac {7 a^{4} x A}{2}+\frac {49 a^{4} B x}{16}+\frac {49 \sin \left (d x +c \right ) A \,a^{4}}{8 d}+\frac {11 a^{4} B \sin \left (d x +c \right )}{2 d}+\frac {\sin \left (6 d x +6 c \right ) a^{4} B}{192 d}+\frac {\sin \left (5 d x +5 c \right ) A \,a^{4}}{80 d}+\frac {a^{4} B \sin \left (5 d x +5 c \right )}{20 d}+\frac {\sin \left (4 d x +4 c \right ) A \,a^{4}}{8 d}+\frac {15 a^{4} B \sin \left (4 d x +4 c \right )}{64 d}+\frac {29 \sin \left (3 d x +3 c \right ) A \,a^{4}}{48 d}+\frac {3 a^{4} B \sin \left (3 d x +3 c \right )}{4 d}+\frac {2 \sin \left (2 d x +2 c \right ) A \,a^{4}}{d}+\frac {127 a^{4} B \sin \left (2 d x +2 c \right )}{64 d}\) | \(208\) |
derivativedivides | \(\frac {\frac {A \,a^{4} \left (\frac {8}{3}+\cos ^{4}\left (d x +c \right )+\frac {4 \left (\cos ^{2}\left (d x +c \right )\right )}{3}\right ) \sin \left (d x +c \right )}{5}+a^{4} B \left (\frac {\left (\cos ^{5}\left (d x +c \right )+\frac {5 \left (\cos ^{3}\left (d x +c \right )\right )}{4}+\frac {15 \cos \left (d x +c \right )}{8}\right ) \sin \left (d x +c \right )}{6}+\frac {5 d x}{16}+\frac {5 c}{16}\right )+4 A \,a^{4} \left (\frac {\left (\cos ^{3}\left (d x +c \right )+\frac {3 \cos \left (d x +c \right )}{2}\right ) \sin \left (d x +c \right )}{4}+\frac {3 d x}{8}+\frac {3 c}{8}\right )+\frac {4 a^{4} B \left (\frac {8}{3}+\cos ^{4}\left (d x +c \right )+\frac {4 \left (\cos ^{2}\left (d x +c \right )\right )}{3}\right ) \sin \left (d x +c \right )}{5}+2 A \,a^{4} \left (\cos ^{2}\left (d x +c \right )+2\right ) \sin \left (d x +c \right )+6 a^{4} B \left (\frac {\left (\cos ^{3}\left (d x +c \right )+\frac {3 \cos \left (d x +c \right )}{2}\right ) \sin \left (d x +c \right )}{4}+\frac {3 d x}{8}+\frac {3 c}{8}\right )+4 A \,a^{4} \left (\frac {\sin \left (d x +c \right ) \cos \left (d x +c \right )}{2}+\frac {d x}{2}+\frac {c}{2}\right )+\frac {4 a^{4} B \left (\cos ^{2}\left (d x +c \right )+2\right ) \sin \left (d x +c \right )}{3}+A \,a^{4} \sin \left (d x +c \right )+a^{4} B \left (\frac {\sin \left (d x +c \right ) \cos \left (d x +c \right )}{2}+\frac {d x}{2}+\frac {c}{2}\right )}{d}\) | \(306\) |
default | \(\frac {\frac {A \,a^{4} \left (\frac {8}{3}+\cos ^{4}\left (d x +c \right )+\frac {4 \left (\cos ^{2}\left (d x +c \right )\right )}{3}\right ) \sin \left (d x +c \right )}{5}+a^{4} B \left (\frac {\left (\cos ^{5}\left (d x +c \right )+\frac {5 \left (\cos ^{3}\left (d x +c \right )\right )}{4}+\frac {15 \cos \left (d x +c \right )}{8}\right ) \sin \left (d x +c \right )}{6}+\frac {5 d x}{16}+\frac {5 c}{16}\right )+4 A \,a^{4} \left (\frac {\left (\cos ^{3}\left (d x +c \right )+\frac {3 \cos \left (d x +c \right )}{2}\right ) \sin \left (d x +c \right )}{4}+\frac {3 d x}{8}+\frac {3 c}{8}\right )+\frac {4 a^{4} B \left (\frac {8}{3}+\cos ^{4}\left (d x +c \right )+\frac {4 \left (\cos ^{2}\left (d x +c \right )\right )}{3}\right ) \sin \left (d x +c \right )}{5}+2 A \,a^{4} \left (\cos ^{2}\left (d x +c \right )+2\right ) \sin \left (d x +c \right )+6 a^{4} B \left (\frac {\left (\cos ^{3}\left (d x +c \right )+\frac {3 \cos \left (d x +c \right )}{2}\right ) \sin \left (d x +c \right )}{4}+\frac {3 d x}{8}+\frac {3 c}{8}\right )+4 A \,a^{4} \left (\frac {\sin \left (d x +c \right ) \cos \left (d x +c \right )}{2}+\frac {d x}{2}+\frac {c}{2}\right )+\frac {4 a^{4} B \left (\cos ^{2}\left (d x +c \right )+2\right ) \sin \left (d x +c \right )}{3}+A \,a^{4} \sin \left (d x +c \right )+a^{4} B \left (\frac {\sin \left (d x +c \right ) \cos \left (d x +c \right )}{2}+\frac {d x}{2}+\frac {c}{2}\right )}{d}\) | \(306\) |
norman | \(\frac {\frac {7 a^{4} \left (8 A +7 B \right ) x}{16}+\frac {281 a^{4} \left (8 A +7 B \right ) \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{20 d}+\frac {231 a^{4} \left (8 A +7 B \right ) \left (\tan ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{20 d}+\frac {119 a^{4} \left (8 A +7 B \right ) \left (\tan ^{9}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{24 d}+\frac {7 a^{4} \left (8 A +7 B \right ) \left (\tan ^{11}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8 d}+\frac {21 a^{4} \left (8 A +7 B \right ) x \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8}+\frac {105 a^{4} \left (8 A +7 B \right ) x \left (\tan ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{16}+\frac {35 a^{4} \left (8 A +7 B \right ) x \left (\tan ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{4}+\frac {105 a^{4} \left (8 A +7 B \right ) x \left (\tan ^{8}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{16}+\frac {21 a^{4} \left (8 A +7 B \right ) x \left (\tan ^{10}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8}+\frac {7 a^{4} \left (8 A +7 B \right ) x \left (\tan ^{12}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{16}+\frac {a^{4} \left (200 A +207 B \right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{8 d}+\frac {a^{4} \left (1864 A +1471 B \right ) \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{24 d}}{\left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{6}}\) | \(329\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.27, size = 297, normalized size = 1.61 \begin {gather*} \frac {64 \, {\left (3 \, \sin \left (d x + c\right )^{5} - 10 \, \sin \left (d x + c\right )^{3} + 15 \, \sin \left (d x + c\right )\right )} A a^{4} - 1920 \, {\left (\sin \left (d x + c\right )^{3} - 3 \, \sin \left (d x + c\right )\right )} A a^{4} + 120 \, {\left (12 \, d x + 12 \, c + \sin \left (4 \, d x + 4 \, c\right ) + 8 \, \sin \left (2 \, d x + 2 \, c\right )\right )} A a^{4} + 960 \, {\left (2 \, d x + 2 \, c + \sin \left (2 \, d x + 2 \, c\right )\right )} A a^{4} + 256 \, {\left (3 \, \sin \left (d x + c\right )^{5} - 10 \, \sin \left (d x + c\right )^{3} + 15 \, \sin \left (d x + c\right )\right )} B a^{4} - 5 \, {\left (4 \, \sin \left (2 \, d x + 2 \, c\right )^{3} - 60 \, d x - 60 \, c - 9 \, \sin \left (4 \, d x + 4 \, c\right ) - 48 \, \sin \left (2 \, d x + 2 \, c\right )\right )} B a^{4} - 1280 \, {\left (\sin \left (d x + c\right )^{3} - 3 \, \sin \left (d x + c\right )\right )} B a^{4} + 180 \, {\left (12 \, d x + 12 \, c + \sin \left (4 \, d x + 4 \, c\right ) + 8 \, \sin \left (2 \, d x + 2 \, c\right )\right )} B a^{4} + 240 \, {\left (2 \, d x + 2 \, c + \sin \left (2 \, d x + 2 \, c\right )\right )} B a^{4} + 960 \, A a^{4} \sin \left (d x + c\right )}{960 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.34, size = 130, normalized size = 0.70 \begin {gather*} \frac {105 \, {\left (8 \, A + 7 \, B\right )} a^{4} d x + {\left (40 \, B a^{4} \cos \left (d x + c\right )^{5} + 48 \, {\left (A + 4 \, B\right )} a^{4} \cos \left (d x + c\right )^{4} + 10 \, {\left (24 \, A + 41 \, B\right )} a^{4} \cos \left (d x + c\right )^{3} + 32 \, {\left (17 \, A + 18 \, B\right )} a^{4} \cos \left (d x + c\right )^{2} + 105 \, {\left (8 \, A + 7 \, B\right )} a^{4} \cos \left (d x + c\right ) + 16 \, {\left (83 \, A + 72 \, B\right )} a^{4}\right )} \sin \left (d x + c\right )}{240 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 765 vs.
\(2 (170) = 340\).
time = 0.55, size = 765, normalized size = 4.14 \begin {gather*} \begin {cases} \frac {3 A a^{4} x \sin ^{4}{\left (c + d x \right )}}{2} + 3 A a^{4} x \sin ^{2}{\left (c + d x \right )} \cos ^{2}{\left (c + d x \right )} + 2 A a^{4} x \sin ^{2}{\left (c + d x \right )} + \frac {3 A a^{4} x \cos ^{4}{\left (c + d x \right )}}{2} + 2 A a^{4} x \cos ^{2}{\left (c + d x \right )} + \frac {8 A a^{4} \sin ^{5}{\left (c + d x \right )}}{15 d} + \frac {4 A a^{4} \sin ^{3}{\left (c + d x \right )} \cos ^{2}{\left (c + d x \right )}}{3 d} + \frac {3 A a^{4} \sin ^{3}{\left (c + d x \right )} \cos {\left (c + d x \right )}}{2 d} + \frac {4 A a^{4} \sin ^{3}{\left (c + d x \right )}}{d} + \frac {A a^{4} \sin {\left (c + d x \right )} \cos ^{4}{\left (c + d x \right )}}{d} + \frac {5 A a^{4} \sin {\left (c + d x \right )} \cos ^{3}{\left (c + d x \right )}}{2 d} + \frac {6 A a^{4} \sin {\left (c + d x \right )} \cos ^{2}{\left (c + d x \right )}}{d} + \frac {2 A a^{4} \sin {\left (c + d x \right )} \cos {\left (c + d x \right )}}{d} + \frac {A a^{4} \sin {\left (c + d x \right )}}{d} + \frac {5 B a^{4} x \sin ^{6}{\left (c + d x \right )}}{16} + \frac {15 B a^{4} x \sin ^{4}{\left (c + d x \right )} \cos ^{2}{\left (c + d x \right )}}{16} + \frac {9 B a^{4} x \sin ^{4}{\left (c + d x \right )}}{4} + \frac {15 B a^{4} x \sin ^{2}{\left (c + d x \right )} \cos ^{4}{\left (c + d x \right )}}{16} + \frac {9 B a^{4} x \sin ^{2}{\left (c + d x \right )} \cos ^{2}{\left (c + d x \right )}}{2} + \frac {B a^{4} x \sin ^{2}{\left (c + d x \right )}}{2} + \frac {5 B a^{4} x \cos ^{6}{\left (c + d x \right )}}{16} + \frac {9 B a^{4} x \cos ^{4}{\left (c + d x \right )}}{4} + \frac {B a^{4} x \cos ^{2}{\left (c + d x \right )}}{2} + \frac {5 B a^{4} \sin ^{5}{\left (c + d x \right )} \cos {\left (c + d x \right )}}{16 d} + \frac {32 B a^{4} \sin ^{5}{\left (c + d x \right )}}{15 d} + \frac {5 B a^{4} \sin ^{3}{\left (c + d x \right )} \cos ^{3}{\left (c + d x \right )}}{6 d} + \frac {16 B a^{4} \sin ^{3}{\left (c + d x \right )} \cos ^{2}{\left (c + d x \right )}}{3 d} + \frac {9 B a^{4} \sin ^{3}{\left (c + d x \right )} \cos {\left (c + d x \right )}}{4 d} + \frac {8 B a^{4} \sin ^{3}{\left (c + d x \right )}}{3 d} + \frac {11 B a^{4} \sin {\left (c + d x \right )} \cos ^{5}{\left (c + d x \right )}}{16 d} + \frac {4 B a^{4} \sin {\left (c + d x \right )} \cos ^{4}{\left (c + d x \right )}}{d} + \frac {15 B a^{4} \sin {\left (c + d x \right )} \cos ^{3}{\left (c + d x \right )}}{4 d} + \frac {4 B a^{4} \sin {\left (c + d x \right )} \cos ^{2}{\left (c + d x \right )}}{d} + \frac {B a^{4} \sin {\left (c + d x \right )} \cos {\left (c + d x \right )}}{2 d} & \text {for}\: d \neq 0 \\x \left (A + B \cos {\left (c \right )}\right ) \left (a \cos {\left (c \right )} + a\right )^{4} \cos {\left (c \right )} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.51, size = 166, normalized size = 0.90 \begin {gather*} \frac {B a^{4} \sin \left (6 \, d x + 6 \, c\right )}{192 \, d} + \frac {7}{16} \, {\left (8 \, A a^{4} + 7 \, B a^{4}\right )} x + \frac {{\left (A a^{4} + 4 \, B a^{4}\right )} \sin \left (5 \, d x + 5 \, c\right )}{80 \, d} + \frac {{\left (8 \, A a^{4} + 15 \, B a^{4}\right )} \sin \left (4 \, d x + 4 \, c\right )}{64 \, d} + \frac {{\left (29 \, A a^{4} + 36 \, B a^{4}\right )} \sin \left (3 \, d x + 3 \, c\right )}{48 \, d} + \frac {{\left (128 \, A a^{4} + 127 \, B a^{4}\right )} \sin \left (2 \, d x + 2 \, c\right )}{64 \, d} + \frac {{\left (49 \, A a^{4} + 44 \, B a^{4}\right )} \sin \left (d x + c\right )}{8 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.62, size = 316, normalized size = 1.71 \begin {gather*} \frac {\left (7\,A\,a^4+\frac {49\,B\,a^4}{8}\right )\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{11}+\left (\frac {119\,A\,a^4}{3}+\frac {833\,B\,a^4}{24}\right )\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^9+\left (\frac {462\,A\,a^4}{5}+\frac {1617\,B\,a^4}{20}\right )\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^7+\left (\frac {562\,A\,a^4}{5}+\frac {1967\,B\,a^4}{20}\right )\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5+\left (\frac {233\,A\,a^4}{3}+\frac {1471\,B\,a^4}{24}\right )\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3+\left (25\,A\,a^4+\frac {207\,B\,a^4}{8}\right )\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{d\,\left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{12}+6\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{10}+15\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^8+20\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6+15\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4+6\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+1\right )}-\frac {7\,a^4\,\left (8\,A+7\,B\right )\,\left (\mathrm {atan}\left (\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\right )-\frac {d\,x}{2}\right )}{8\,d}+\frac {7\,a^4\,\mathrm {atan}\left (\frac {7\,a^4\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\,\left (8\,A+7\,B\right )}{8\,\left (7\,A\,a^4+\frac {49\,B\,a^4}{8}\right )}\right )\,\left (8\,A+7\,B\right )}{8\,d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________